<template>
	<div class="aside-bg" :class="{right}">
		<span class="one-letter">{{title}}</span>
	</div>
</template>

<script>
export default{
	props:{
		title:{
			type: String,
			default: '侧边'
		},
		right:{
			type: Boolean,
			default: false
		}
	}
}
</script>

<style lang="less" scoped>
.aside-bg{
	position: absolute;
	top: 50%;
	left: -.95vh;
	transform: translateY(-50%);
	padding: 15px 0;
	width: 24px;
	text-align: center;
	background-color: rgba(255, 255, 255, .3);
	border-top-right-radius: 40px;
	border-bottom-right-radius: 40px;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	box-shadow: 0px 0px 4px rgba(255,255,255,.3),0px 0px 4px rgba(255,255,255,.3),0px 0px 4px rgba(255,0,255,.5);
	&.right{
		left: unset;
		right: -.95vh;
		border-top-right-radius: 5px;
		border-bottom-right-radius: 5px;
		border-top-left-radius: 40px;
		border-bottom-left-radius: 40px;
	}
	.one-letter{
		width: 14px;
		line-height: 18px;
		font-size: 14px;
		height: auto;
		white-space: normal;
		text-shadow: 0px 0px 3px #0ff,0px 0px 3px #0ff,0px 0px 3px #0ff;
	}
}
</style>
